# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=websocketd
pkgver=0.3.1
pkgrel=1
pkgdesc="Like inetd, but for WebSockets. Turn any application that uses STDIO/STDOUT into a WebSocket server."
url="https://github.com/joewalnes/websocketd"
arch="all"
license="BSD-2-Clause"
options="!check" #no test provided
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/joewalnes/websocketd/archive/v$pkgver.tar.gz
make.patch"

build() {
	make websocketd
}
package() {
	install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="0b6914e656df24eca6060baad6336ea6916385c0e8ec998ba49ec777d298250f9e31b49277d3e35365c855e98e15f15ed07fde99dbb4212804c6463ce6bd8598  websocketd-0.3.1.tar.gz
d9d9eaf5990e0be007bf77091932c33d2c921b45c1a289ffea6662d7842a357227c0ac5358962c74fbcd5886ca3194b0028d41e9ca5081a7bceedc838cc10384  make.patch"
